import { _decorator } from 'cc';
import { puremvc } from './puremvc';
const { ccclass, property } = _decorator;

@ccclass('GameMediator')
export class GameMediator extends puremvc.Mediator {
    static CNT = 0;
    cnt: number;
    get name() {
        return 'GameMediator_' + this.cnt;
    }
    constructor() {
        let cnt = ++GameMediator.CNT;
        let name = 'GameMediator_' + cnt;
        super(name, null);
        this.cnt = cnt;
    }
    get com() {
        return this.viewComponent;
    }
}


